import React, { Component } from "react";
import {  Form, Input } from 'antd';

export default class EditableForm extends Component {
    // 初始化状态
    state = { formData: {note: ''} }

    render() {
        const { formData } = this.state
        return (
            <div>
                <Form
                   name="basic"
                >
                    <Form.Item name="note" label="Note" rules={[{ required: true }]}>
                        <Input />
                    </Form.Item>
                    <Form.Item name="note1" label="Note1" rules={[{ required: true }]}>
                        <Input />
                    </Form.Item>
                </Form>
            </div>
        )
    }
}